package cn.fbs.dao.dm;

import cn.fbs.model.dm.SysUser;
import cn.fbs.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);
    SysUser selectByUserName(String operator);
    SysUser selectByLoginName(String loginName);

    Integer selectCount(@Param("loginName") String loginName);

    List<SysUserVo> getUsers(@Param("searchName") String searchName, @Param("groupId") Long groupId);
}